<%@page import="com.baoyanghui.common.Constants"%>
<%@page import="com.baoyanghui.config.Configs"%>
<%@page import="com.baoyanghui.common.Utils"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<script type="text/javascript" src="<%= request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/js/common.js"></script>

<div align="center" style="height: 102px; background: url('<%= request.getContextPath() %>/image/bg_header.png');">
	<div style="width:1000px; display: inline-block;">
		<a href="<%= request.getContextPath() %>/index.jsp">
			<img width="100px" alt="" src="<%= request.getContextPath() %>/image/logo.png" style="float: left;"/>
			<img alt="" src="<%= request.getContextPath() %>/image/logo2.png" style="float: left; margin-top: 10px;"/>
		</a>
		<div style="float: right; margin-top: 10px;">
			<div style="display: inline-block; vertical-align: top;">
				<a href="<%= request.getContextPath() %>/index.jsp">
					<img class="pointer fade_effect" align="top" src="<%= request.getContextPath() %>/image/btn_home.png">
				</a>
<%
	if (Utils.empty((String)request.getSession().getAttribute(Configs.SESSION_USER_ID))
		|| (Constants.USER_TYPE_MERCHANT == (Integer)request.getSession().getAttribute(Configs.SESSION_USER_TYPE))) {
	
%>				
				<img class="pointer fade_effect" align="top" src="<%= request.getContextPath() %>/image/btn_customer_login.png" onclick="showCustomerLogin();">
<%
	} else {
%>
				<img class="pointer fade_effect" align="top" src="<%= request.getContextPath() %>/image/btn_my_account.png"
					onclick="window.location.href='<%= request.getContextPath() %>/customer/my_account.jsp';">
<%
	}
%>
				<img class="pointer fade_effect" align="top" src="<%= request.getContextPath() %>/image/btn_merchant_login.png" onclick="showMerchantLogin();">
				<input type="text" name="keyword" id="keyword" style="width: 211px; height: 35px; padding-top: 8px; vertical-align: top; font-size: 18pt; border: none; background: url('<%= request.getContextPath() %>/image/bg_header_search_text.png');"/>
				<img class="fade_effect" align="top" src="<%= request.getContextPath() %>/image/btn_header_search.png">

			</div>
			<div style="clear:both;"></div>
		</div>
		<div style="clear:both;"></div>
	</div>
</div>